package com.wenjiandaorudaochu.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wenjiandaorudaochu.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @author liumao
 * @date 2023/4/3/003
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {
    /**
     * 查询所有的用户
     * @return
     */
    List<User> findAll();

    /**
     * 统计表中的字段数目
     * @return
     */
    Integer count();

    /**
     * 查询表中所有字段的名称
     * @return
     */
    List<String> countClomns();
}